package com.sansan.qiangji.controller.pda;

import com.sansan.qiangji.realize.system.UserReal;
import com.sansan.qiangji.resultVO.ResultVO;
import com.sansan.qiangji.utils.ResultVOUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@CrossOrigin()
@RestController
@RequestMapping("/pda")
@Slf4j
public class PdaController {
    private UserReal userReal;

    @Resource
    public void setUserReal(UserReal userReal) {
        this.userReal = userReal;
    }

    @PostMapping("/userPdaLogin")
    public ResultVO<Object> userPdaLogin(@RequestParam(name = "userCardId") String userCardId) {
        return ResultVOUtil.success(userReal.userPdaLogin(userCardId));
    }
}
